package cn.wolfcode.cms.service;

import cn.wolfcode.cms.domain.Employee;
import cn.wolfcode.cms.query.EmployeeQueryObject;
import cn.wolfcode.cms.util.PageResult;

import java.util.List;

//员工服务层
public interface IEmployeeService {
    void save(Employee entity);
    void update(Employee entity);
    void delete(Long id);
    Employee get(Long id);
    List<Employee> list();

    //通过参数查询分页数据
    PageResult query(EmployeeQueryObject qo);

    //离职与复职
    void quit(Long id);

    //通过名字查询用户
    Employee getEmployeeByName(String username);
}
